/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.cvut.fel.taskpro.business.support;

import java.io.Serializable;

/**
 * This class respresent business rule exception which is invoke, if some action
 * could changed system to state which is conflict with business system business
 * rules.
 * @author Tom
 * @version 1.0.0. beta
 */
public class BusinessRuleException extends Exception implements Serializable{

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public int getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(int exceptionCode) {
        this.exceptionCode = exceptionCode;
    }
    private int exceptionCode;
    private String errorMessage;

    public BusinessRuleException(int exceptionCode, String errorMessage) {
        this.exceptionCode = exceptionCode;
        this.errorMessage = errorMessage;
    }
    
}
